//
//  XYHttpRequest.h
//  WBBaseProject
//
//  Created by 吴斌 on 2018/3/22.
//  Copyright © 2018年 吴斌. All rights reserved.
//

#import <Foundation/Foundation.h>
typedef void(^success)(id responseObj);
typedef void(^failure)(NSError *error);

@interface XYHttpRequest : NSObject

//查询虚拟资金(红包 抵用券)
+ (void)dataRequestGetVirtualMoneyWithDic:(NSDictionary*)para success:(success)success failure:(failure)failure;

//注册获取短信验证码
+ (void)dataRequestGetMessageWithPhone:(NSString*)phone codeLength:(NSInteger)length success:(success)success failure:(failure)failure;

//注册
+ (void)dataRequestRegisterWithphone:(NSString*)phone withPassword:(NSString*)password withSmsCode:(NSString*)smsCode success:(success)success failure:(failure)failure;

//用户登录
+ (void)dataRequestLoginWithPhone:(NSString*)phone withPassword:(NSString*)password success:(success)success failure:(failure)failure;

//投资列表
+ (void)dataRequestInvestWithiInvestRate:(NSString *)investRate risks:(NSString *)risks periods:(NSString *)periods level:(NSString *)level sortField:(NSString *)sortField sortType:(NSString *)sortType page:(NSString *)page rows:(NSString *)rows success:(success)success failure:(failure)failure;

//修改密码
+ (void)dataRequestWithNewPwd:(NSString *)newPwd oldPwd:(NSString *)oldPwd success:(success)success failure:(failure)failure;

//修改手机号码
+ (void)dataRequestWithModifiedPhoneNumber:(NSString *)phone code:(NSString*)code uccess:(success)success failure:(failure)failure;

//获取用户对象接口
+ (void)dataRequestWithGetUserInfoSuccess:(success)success failure:(failure)failure;

//新增交易密码
+ (void)dataRequestWithAddTraderPwd:(NSString *)pwd success:(success)success failure:(failure)failure;

//验证交易密码
+ (void)dataRequestWithCheckTraderOldPwd:(NSString *)oldPwd success:(success)success failure:(failure)failure;

//修改交易密码
+ (void)dataRequestWithChangeTraderPw:(NSString *)oldPwd newPw:(NSString *)newPw success:(success)success failure:(failure)failure;

//投标余额查询
+ (void)dataRequestWithGetCustBalanaSuccess:(success)success failure:(failure)failure;


//投标预期收益查询
+ (void)dataRequestWithGetExceptedReturnCrmOrderId:(NSString*)crmorderid Amount:(NSString*)amount GuarantorStatus:(NSInteger)guarantorStatus success:(success)success failure:(failure)failure;

// 确认投标
+ (void)dataRequestWithAppDoInvestCrmOrderId:(NSString*)crmorderid custInfoId:(NSString*)custInfoId prdId:(NSString*)prdId amount:(NSString*)amount actualAmount:(NSString*)actualAmount guarantorStatus:(NSInteger)guarantorStatus success:(success)success failure:(failure)failure;

//投资人首次绑卡接口
+ (void)dataRequestWithCertificationBindCardCustName:(NSString *)custName custIc:(NSString *)custIc bankName:(NSString *)bankName custBindCard:(NSString *)custBindCard custBindCardMobile:(NSString *)custBindCardMobile code:(NSString *)code defaultCard:(NSNumber*)defaultCard success:(success)success failure:(failure)failure;

//充值接口
+ (void)dataRequestWithRechargeMoney:(NSString *)money success:(success)success failure:(failure)failure;

//提现接口
+ (void)dataRequestWithDrawMoney:(NSString *)money success:(success)success failure:(failure)failure;

//默认银行卡信息
+ (void)dataRequestWithDefaultBankCardsuccess:(success)success failure:(failure)failure;
//设置默认银行卡

+ (void)dataRequestSetDefaultBankCardWithCardType:(NSInteger)type cardId:(NSString*)cardid success:(success)success failure:(failure)failure;

//我的银行卡列表
+ (void)dataRequestWithMyBankCardListType:(NSInteger)type success:(success)success failure:(failure)failure;

//支持的银行卡列表
+ (void)dataRequestWithSupportBankCardListType:(NSInteger)type success:(success)success failure:(failure)failure;

//风险等级
+ (void)dataRequestWithGetInvestRisksuccess:(success)success failure:(failure)failure;

//只能分级
+ (void)dataRequestWithGetGetInvestLevelsuccess:(success)success failure:(failure)failure;
@end
